//
//  LoginScene.cpp
//  CardGame
//
//  Created by wangdi on 13-8-22.
//
//

#include "LoginScene.h"
#include "../Tables/TableManager.h"
using namespace cocos2d;
using namespace storm;

void LoginScene::onEnter()
{
	CCLayer::onEnter();
	Adapter::Instance()->AdjustLayer(this);
	m_pUIRoot = UIWindow::create();
	addChild(m_pUIRoot);

	CCPoint ptTest = convertToWorldSpace(CCPointZero);
	CCLog("%f, %f",ptTest.x, ptTest.y);

	m_pEnterWindow = EnterWindow::create();
	m_pUIRoot->AddPanel(m_pEnterWindow, 100);

	Tab_Test *pTestTable = TableManager::GetTestByID(1);
	int id = pTestTable->GetID();
	std::string strName = pTestTable->GetName();
	int power = pTestTable->GetPower();
	CCLog("%d, %f", pTestTable->GetID(), pTestTable->GetStorm());

}
